package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程管理对象 tb_course
 *
 * @author ruoyi
 * @date 2024-12-10
 */
public class TbCourse extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 课程id
     */
    private Long id;

    /**
     * 课程编码
     */
    @Excel(name = "课程编码")
    private String code;

    /**
     * 课程学科
     */
    @Excel(name = "课程学科")
    private String subject;

    /**
     * 课程名称
     */
    @Excel(name = "课程名称")
    private String name;

    /**
     * 价格（元）
     */
    @Excel(name = "价格", readConverterExp = "元=")
    private Long price;

    /**
     * 适用人群
     */
    @Excel(name = "适用人群")
    private String applicablePerson;

    /**
     * 课程介绍
     */
    @Excel(name = "课程介绍")
    private String info;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getSubject() {
        return subject;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getPrice() {
        return price;
    }

    public void setApplicablePerson(String applicablePerson) {
        this.applicablePerson = applicablePerson;
    }

    public String getApplicablePerson() {
        return applicablePerson;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getInfo() {
        return info;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("subject", getSubject())
                .append("name", getName())
                .append("price", getPrice())
                .append("applicablePerson", getApplicablePerson())
                .append("info", getInfo())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
